package smart
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.events.Event;
	
	import smart.utils.SharedEvtDispacher;
	
	 
 
	/**
	 *  
	 * @author Eric li 
	 * 
	 */	
	public class Contenxt extends CoreConnector
	
	{
		[Inject]
		public var mediatorMap:MediatorMap;
		public var commandMap:CommandMap;
		protected var contextView:DisplayObjectContainer
		public function Contenxt(contextView:DisplayObjectContainer=null, autoStartup:Boolean=true)
		{
			super();
			this.contextView=contextView;
		//	this.contextView.addEventListener(Event.ADDED_TO_STAGE,onViewAdded);
			commandMap=new CommandMap();
			mediatorMap.setContext(contextView);
			
			if(autoStartup)
				this.startup();
			var dis:DisplayObject;
			
			
		}
		public function startup():void
		{
			
		}
		
		
	}
}